package com.mirror.repository;

import com.mirror.entity.oldman.Doctor;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DoctorRepository extends JpaRepository<Doctor, String>, JpaSpecificationExecutor<Doctor> {


    Page<Doctor> findAllByIsdel(Pageable pageable, boolean isdel);

    List<Doctor> findAllByIsdel(boolean isdel);

}
